package com.ruoyi.project.yingyu.bookcatelog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.TreeEntity;

/**
 * 单词目录对象 book_catelog
 * 
 * @author shixiangwen
 * @date 2020-03-23
 */
public class BookCatelog extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 父类ID */
    @Excel(name = "父类ID")
    private Long pid;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 单词个数 */
    @Excel(name = "单词个数")
    private Long wordCount;

    /** 是否页子结点 */
    @Excel(name = "是否页子结点")
    private Long leaf;

    /** 是否测试 */
    @Excel(name = "是否测试")
    private Integer test;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setWordCount(Long wordCount) 
    {
        this.wordCount = wordCount;
    }

    public Long getWordCount() 
    {
        return wordCount;
    }
    public void setLeaf(Long leaf) 
    {
        this.leaf = leaf;
    }

    public Long getLeaf() 
    {
        return leaf;
    }
    public void setTest(Integer test) 
    {
        this.test = test;
    }

    public Integer getTest() 
    {
        return test;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("pid", getPid())
            .append("sort", getSort())
            .append("wordCount", getWordCount())
            .append("leaf", getLeaf())
            .append("test", getTest())
            .toString();
    }
}
